import 'package:flutter/material.dart';

import 'function_button_item_data.dart';
import 'function_button_item_widget.dart';

class FunctionButtonWidget extends StatelessWidget {
  const FunctionButtonWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 100,
      width: double.infinity,
      padding: const EdgeInsets.all(10),
      decoration: BoxDecoration(
        color: Colors.white,
        border: Border(
          bottom: BorderSide(
            color: Colors.grey[200]!,
          ),
        ),
      ),
      child: ListView(
        scrollDirection: Axis.horizontal,
        children: list
            .map(
              (item) => FunctionButtonItemWidget(item),
            )
            .toList(),
      ),
    );
  }
}
